package com.ty.mapper;

import com.ty.entity.UserAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 用户地址表 Mapper 接口
 * </p>
 *
 * @author txy
 * @since 2024-02-04
 */
public interface UserAddressMapper extends BaseMapper<UserAddress> {
    @Select("select * from user_address where user_id = #{userId}")
    List<UserAddress> selectByUserId(String userId);
}
